<?php declare(strict_types=1);
/**
 * @author      xianganyall <xianganyall@gmail.com>
 * @copyright   2023-2025 owner
 **/

namespace Srv\Libs\Plugins\QrCode;

class QrRsBlock
{
    public int $dataLength;
    public array $data = [];
    public int $eccLength;
    public array $ecc = [];

    public function __construct($dl, $data, $el, &$ecc, QrRsItem $rs)
    {
        $rs->encode_rs_char($data, $ecc);
        $this->dataLength = $dl;
        $this->data = $data;
        $this->eccLength = $el;
        $this->ecc = $ecc;
    }
}